package com.component.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.component.domain.MFile;

import java.io.File;
import java.util.List;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/7/2 22:14
 * @since JDK 1.8
 */
public interface MFileService extends IService<MFile> {

    public JSONObject addFilesByPath(String path);

    public MFile fileToMFile(String uid, File file);

    public IPage<MFile> page(Integer page,Integer size,String keyword);

    public IPage<MFile> pageByFileType(Integer pageNum,Integer pageSize,List<String> fileTypes);


}
